<!doctype html>
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<title>Bidi Mobile test - Dialog</title>

	<script type="text/javascript" src="../../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','SimpleDialog','TextBox','Button','ComboBox']"></script>
	<script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true,  has: { 'dojo-bidi': true }"></script>

	<script type="text/javascript">
		require([
			"dijit/registry",
			"dojox/mobile/parser",
			"dojox/mobile",
			"dojox/mobile/compat",
			"dojox/mobile/SimpleDialog",
			"dojox/mobile/TextBox",
			"dojox/mobile/ComboBox",
			"dojox/mobile/TabBar",
			"dojox/mobile/Heading",
			"dojox/mobile/ScrollableView",
			"dojox/mobile/ListItem",
			"dojox/mobile/TextArea",
			"dojox/mobile/EdgeToEdgeDataList",
			"dojox/mobile/Button"
		], function(registry){
			show1 = function(){
				registry.byId("dlg1").show();
			}
			show2 = function(){
				registry.byId("dlg2").show();
			}
			show3 = function(){
				registry.byId("dlg3").show();
			}
			show4 = function(){
				registry.byId("dlg4").show();
			}
			show5 = function(){
				registry.byId("dlg5").show();
			}
			show6 = function(){
				registry.byId("dlg6").show();
			}
		});
	</script>

	<style>
	html,body {
		height: 100%;
		overflow: hidden;
	}
	hr {
		border: none;
		margin: 0;
	}
	button {
		width: 180px;
		margin: 15px 10px 0;
	}
	button.customButton {
		border-color: #cc3333;
		background-image: url('../images/red-button-bg.png');
		background-image: -webkit-gradient(linear, left top, left bottom, from(#D3656D), to(#BC1320), color-stop(0.5, #C9404B), color-stop(0.5, #BC1421));
		color: #ffffff;
	}
	</style>
	
	<style>
	#dlg1 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg1 TABLE {
		margin: 20px;
	}
	#dlg1 INPUT, #dlg1 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg1 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
	<style>
	#dlg2 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg2 TABLE {
		margin: 20px;
	}
	#dlg2 INPUT, #dlg2 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg2 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
	<style>
	#dlg3 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg3 TABLE {
		margin: 20px;
	}
	#dlg3 INPUT, #dlg3 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg3 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
	<style>
	#dlg4 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg4 TABLE {
		margin: 20px;
	}
	#dlg4 INPUT, #dlg4 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg4 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
	<style>
	#dlg5 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg5 TABLE {
		margin: 20px;
	}
	#dlg5 INPUT, #dlg5 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg5 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
	<style>
	#dlg6 {
		top: 25%;
		left: 25%;
		width: 700px;
		height: 550px;
	}
	#dlg6 TABLE {
		margin: 20px;
	}
	#dlg6 INPUT, #dlg6 TEXTAREA {
		background-color: #000000;
		color: #ffffff;
		width: 90%;
		font-size: 17px;
		margin: 4px;
	}
	#dlg6 TEXTAREA {
		height: 160px;
	}
	.dlgTitle {
		font-family: Helvetica;
		font-size: 17px;
		margin: 14px 14px;
	}
	</style>
	
</head>
<body style="visibility:hidden;">
<datalist id="values">
		<select data-dojo-type="dijit.form.DataList" data-dojo-props='id:"values"' >
				<option selected>&#1513;&#1500;&#1493;&#1501!</option>
				<option >Hello!</option>
				
		</select>
		</datalist>
<div id="group1" data-dojo-type="dojox.mobile.View" data-dojo-props='keepScrollPos:false'><!-- keepScrollPos=false is to improve performance -->
	<div id="view0" data-dojo-type="dojox.mobile.ScrollableView">
	 <h2 data-dojo-type="dojox.mobile.Heading">Dialog</h2>
		<h1 data-dojo-type="dojox.mobile.Heading">dir LTR</h1>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
			<li id="l1" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/LTR.png", moveTo:"view1"'>Tex Dir LTR</li>
			<li id="l2" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/RTL.png", moveTo:"view2"'>Tex Dir RTL</li>
			<li id="l3" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/auto.png", moveTo:"view3"'>Tex Dir AUTO</li>
		</ul>
		<h1 data-dojo-type="dojox.mobile.Heading">dir RTL</h1>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
			<li id="l4" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/LTR.png", moveTo:"view4"'>Tex Dir LTR</li>
			<li id="l5" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/RTL.png", moveTo:"view5"'>Tex Dir RTL</li>
			<li id="l6" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/auto.png", moveTo:"view6"'>Tex Dir AUTO</li>
		</ul>	
	</div>	
	<div id="view1" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>textDir LTR</h1>
		
		<button onclick="show1()">Show Dialog</button>
		
	<div id="dlg1" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" value="Hello World !" data-dojo-props='textDir:"ltr"' ><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"ltr"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
	</div>
		
		
		

	</div>	
	<div id="view2" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>textDir RTL</h1>
		
		<button onclick="show2()">Show Dialog</button>
		
	<div id="dlg2" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" data-dojo-props='value:"Hello World !", textDir:"rtl"' 	><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"rtl"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
		</div>
	</div>	
	<div id="view3" data-dojo-type="dojox.mobile.ScrollableView">	
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>textDir AUTO</h1>
		<button onclick="show3()">Show Dialog</button>
		
	<div id="dlg3" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" value="Hello World !" data-dojo-props='textDir:"auto"' ><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"auto"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
		</div>
	</div>	
	 
	<div id="view4" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>dir RTL, textDir LTR</h1>
		
		<button onclick="show4()">Show Dialog</button>
		
	<div id="dlg4" dir="rtl" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" value="Hello World !" data-dojo-props='textDir:"ltr"' ><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"ltr"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
	</div>
		
		
		
		
	</div>
	<div id="view5" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>dir RTL, textDirRTR</h1>
		
		<button onclick="show5()">Show Dialog</button>
		
	<div id="dlg5" dir="rtl" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" data-dojo-props='value:"Hello World !", textDir:"rtl"' 	><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"rtl"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
		</div>
		
		
		
	</div>	
	<div id="view6" data-dojo-type="dojox.mobile.ScrollableView">	
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>dir RTL, textDir AUTO</h1>
		
		<button onclick="show6()">Show Dialog</button>
		
	<div id="dlg6" dir="rtl" data-dojo-type="dojox.mobile.SimpleDialog" data-dojo-props='closeButton:true'>
		<div class="dlgTitle" >Dialog for Text dir test
			<button data-dojo-type="dojox.mobile.Button" class="mblBlueButton" style="width:150px;float:right;" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501; !</button>
		</div>
		
		<table style="width:100%">
			<tr>
				<td style="width:250px"><img alt="" src="../images/pic1.jpg" width="230" height="230"></td>
				<td style="vertical-align:top">
					<input data-dojo-type="dojox.mobile.TextBox" value="Hello World !" data-dojo-props='textDir:"auto"' ><br>
					<input data-dojo-type="dojox.mobile.ComboBox" data-dojo-props='value:"Hello &#1506;&#1493;&#1500;&#1501;!", list:"values", textDir:"auto"'>
					
				</td>
			</tr>
			<tr>
				<td colspan="2"><textarea data-dojo-type="dojox.mobile.TextArea" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; World!</textarea></td>
			</tr>
		</table>
		</div>
		
		
			
	</div>	
</div>

</div>
</body>
</html>
